import { createStore } from 'vuex'
import state from "@/store/state";
import mutations from './mutations'
import * as getters from './getter'
import createPersistedState from 'vuex-solidification';
export default createStore({
  state,
  getters,
  mutations,
  plugins: [ // 默认存储所有state数据到localstorage
    createPersistedState()
  ]
})
